<script setup>
import PostDetailContentCommentItem from './PostDetailContentCommentItem.vue'

defineProps({
  data: Object,
  postMasterUid: Number,
  postId: Number,
  info: Object,
})

const emit = defineEmits(['refreshUpdate'])

const refreshUpdate = () => {
  emit('refreshUpdate')
}
</script>

<template>
  <div class="p-4 flex flex-col gap-6" >
    <PostDetailContentCommentItem
      v-for="item in data"
      :key="item.id"
      :data="item"
      :info="info"
      :postMasterUid="postMasterUid"
      @refreshUpdate="refreshUpdate"
      :postId="postId" />
  </div>
</template>

<style scoped lang="scss"></style>
